﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

public partial class BalanceCenter_Default : PageBase
{
    public static string SubPage = "";
    public static string MenuPage = "";

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string RequestLoginPage = "";

            try
            {
                RequestLoginPage = Request["SubPage"];
            }
            catch
            {
                RequestLoginPage = "";
            }

            if ((RequestLoginPage == null) || (RequestLoginPage == ""))
            {
                SubPage = "BalanceCenterIndex.aspx";
            }
            else
            {
                SubPage = RequestLoginPage;
            }

            MenuPage = "MenuOffice.aspx";

            if (_User.Competences.CompetencesList != "")
            {
                MenuPage = "MenuAdmin.aspx";
            }
        }
    }

    #region Web 窗体设计器生成的代码

    override protected void OnInit(EventArgs e)
    {
        isRequestLogin = true;
        RequestLoginPage = "BalanceCenter/BalanceCenterIndex.aspx";

        base.OnInit(e);
    }

    #endregion
}